<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>拼餐APP - 预览</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        body {
            background-color: #f5f5f5;
            font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
            -webkit-font-smoothing: antialiased;
            margin: 0;
            padding: 0;
            min-height: 100vh;
        }
        
        .preview-header {
            background-color: #121212;
            color: white;
            padding: 20px;
            text-align: center;
        }
        
        .flow-diagram {
            max-width: 100%;
            overflow-x: auto;
            padding: 20px;
            background-color: #121212;
        }
        
        .flow-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            width: fit-content;
            min-width: 800px;
        }
        
        .flow-steps {
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            width: 100%;
        }
        
        .flow-step {
            background-color: #1F1F1F;
            border-radius: 10px;
            padding: 12px;
            margin: 0 30px;
            text-align: center;
            color: white;
            width: 120px;
            position: relative;
            z-index: 10;
        }
        
        .flow-step.primary {
            background-color: #FE2C55;
        }
        
        .flow-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(255, 255, 255, 0.6);
            font-size: 24px;
        }
        
        .flow-actions {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            margin-top: 20px;
        }
        
        .flow-action {
            background-color: #1F1F1F;
            border-radius: 8px;
            padding: 8px 16px;
            margin: 5px 10px;
            color: white;
            font-size: 14px;
            display: flex;
            align-items: center;
        }
        
        .flow-action i {
            margin-right: 6px;
            color: #FE2C55;
        }
        
        /* 九宫格布局 */
        .grid-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(415px, 1fr)); /* 宽度保证大于iframe的375px */
            gap: 20px;
            padding: 20px;
            max-width: 1600px;
            margin: 0 auto;
        }
        
        .grid-item {
            background-color: white;
            border-radius: 10px;
            overflow: hidden;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            height: 720px; /* 高度保证大于iframe的667px */
            display: flex;
            flex-direction: column;
        }
        
        .grid-header {
            background-color: #121212;
            color: white;
            padding: 12px;
            text-align: center;
            font-weight: 500;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .grid-header a {
            color: white;
            text-decoration: none;
            display: flex;
            align-items: center;
            transition: all 0.2s ease;
        }
        
        .grid-header a:hover {
            color: #FE2C55;
        }
        
        .grid-header a i {
            margin-left: 8px;
            font-size: 14px;
        }
        
        .grid-content {
            flex: 1;
            position: relative;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        
        /* iframe尺寸设置为子页面设计稿尺寸 */
        iframe {
            width: 375px;
            height: 667px;
            border: none;
        }
        
        .empty-card {
            width: 375px;
            height: 667px;
            background-color: rgba(0, 0, 0, 0.05);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #666;
            font-size: 16px;
        }
        
        .page-label {
            position: absolute;
            top: 5px;
            left: 5px;
            background-color: rgba(254, 44, 85, 0.8);
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            z-index: 100;
        }
        
        /* 打开页面按钮 */
        .open-page-btn {
            margin-top: 10px;
            background-color: #FE2C55;
            color: white;
            border: none;
            border-radius: 4px;
            padding: 8px 12px;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            transition: all 0.2s ease;
        }
        
        .open-page-btn i {
            margin-right: 6px;
        }
        
        .open-page-btn:hover {
            background-color: #e02347;
        }
        
        .open-page-btn:active {
            transform: translateY(1px);
        }
        
        .open-page-btn.disabled {
            background-color: #7a7a7a;
            cursor: not-allowed;
        }
        
        .open-page-btn.disabled:hover {
            background-color: #7a7a7a;
        }

        @media (max-width: 768px) {
            .grid-container {
                grid-template-columns: 1fr;
            }
            
            .flow-step {
                width: 100px;
                margin: 0 15px;
                font-size: 14px;
            }
        }
    </style>
</head>
<body>
    <div class="preview-header">
        <h1 class="text-2xl font-bold">拼餐APP - 界面预览</h1>
        <p class="mt-2 text-gray-400">一起吃饭，越吃越省</p>
    </div>
    
    <!-- 用户流程示意图 -->
    <div class="flow-diagram">
        <div class="flow-container">
            <h2 class="text-white text-xl mb-6">用户流程图</h2>
            
            <div class="flow-steps">
                <div class="flow-step primary">
                    <i class="fa-solid fa-user-check text-xl mb-2"></i>
                    <div>登录/注册</div>
                </div>
                <div class="flow-arrow" style="left: 170px;">
                    <i class="fa-solid fa-arrow-right"></i>
                </div>
                <div class="flow-step">
                    <i class="fa-solid fa-house text-xl mb-2"></i>
                    <div>首页</div>
                </div>
                <div class="flow-arrow" style="left: 320px;">
                    <i class="fa-solid fa-arrow-right"></i>
                </div>
                <div class="flow-step">
                    <i class="fa-solid fa-utensils text-xl mb-2"></i>
                    <div>餐厅详情</div>
                </div>
                <div class="flow-arrow" style="left: 470px;">
                    <i class="fa-solid fa-arrow-right"></i>
                </div>
                <div class="flow-step">
                    <i class="fa-solid fa-users text-xl mb-2"></i>
                    <div>拼餐详情</div>
                </div>
                <div class="flow-arrow" style="left: 620px;">
                    <i class="fa-solid fa-arrow-right"></i>
                </div>
                <div class="flow-step">
                    <i class="fa-solid fa-user text-xl mb-2"></i>
                    <div>个人中心</div>
                </div>
            </div>
            
            <div class="flow-actions">
                <div class="flow-action">
                    <i class="fa-solid fa-plus"></i> 发起拼餐
                </div>
                <div class="flow-action">
                    <i class="fa-solid fa-user-plus"></i> 邀请好友
                </div>
                <div class="flow-action">
                    <i class="fa-solid fa-comment"></i> 拼餐聊天
                </div>
                <div class="flow-action">
                    <i class="fa-solid fa-bookmark"></i> 收藏餐厅
                </div>
                <div class="flow-action">
                    <i class="fa-solid fa-filter"></i> 筛选餐厅
                </div>
            </div>
        </div>
    </div>
    
    <!-- 九宫格预览 -->
    <div class="grid-container">
        <!-- 登录页面 -->
        <div class="grid-item">
            <div class="grid-header">
                <a href="login.html" target="_blank">登录/注册页面 <i class="fa-solid fa-external-link-alt"></i></a>
            </div>
            <div class="grid-content">
                <div class="page-label">Login</div>
                <iframe src="login.html"></iframe>
            </div>
        </div>
        
        <!-- 首页 -->
        <div class="grid-item">
            <div class="grid-header">
                <a href="home.html" target="_blank">首页 <i class="fa-solid fa-external-link-alt"></i></a>
            </div>
            <div class="grid-content">
                <div class="page-label">Home</div>
                <iframe src="home.html"></iframe>
            </div>
        </div>
        
        <!-- 个人中心 -->
        <div class="grid-item">
            <div class="grid-header">
                <a href="profile.html" target="_blank">个人中心 <i class="fa-solid fa-external-link-alt"></i></a>
            </div>
            <div class="grid-content">
                <div class="page-label">Profile</div>
                <iframe src="profile.html"></iframe>
            </div>
        </div>
        
        <!-- 餐厅详情页 -->
        <div class="grid-item">
            <div class="grid-header">
                餐厅详情页
            </div>
            <div class="grid-content">
                <div class="empty-card">
                    <div class="text-center">
                        <i class="fa-solid fa-store text-5xl mb-3 text-gray-400"></i>
                        <div>待设计</div>
                        <div class="text-gray-400 text-sm mt-1">使用 /设计 restaurant-detail 创建</div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 发起拼餐 -->
        <div class="grid-item">
            <div class="grid-header">
                发起拼餐页面
            </div>
            <div class="grid-content">
                <div class="empty-card">
                    <div class="text-center">
                        <i class="fa-solid fa-plus text-5xl mb-3 text-gray-400"></i>
                        <div>待设计</div>
                        <div class="text-gray-400 text-sm mt-1">使用 /设计 create-group 创建</div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 拼餐详情 -->
        <div class="grid-item">
            <div class="grid-header">
                拼餐详情页面
            </div>
            <div class="grid-content">
                <div class="empty-card">
                    <div class="text-center">
                        <i class="fa-solid fa-users text-5xl mb-3 text-gray-400"></i>
                        <div>待设计</div>
                        <div class="text-gray-400 text-sm mt-1">使用 /设计 group-detail 创建</div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 好友列表 -->
        <div class="grid-item">
            <div class="grid-header">
                好友列表页面
            </div>
            <div class="grid-content">
                <div class="empty-card">
                    <div class="text-center">
                        <i class="fa-solid fa-address-book text-5xl mb-3 text-gray-400"></i>
                        <div>待设计</div>
                        <div class="text-gray-400 text-sm mt-1">使用 /设计 friends 创建</div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 消息中心 -->
        <div class="grid-item">
            <div class="grid-header">
                消息中心页面
            </div>
            <div class="grid-content">
                <div class="empty-card">
                    <div class="text-center">
                        <i class="fa-solid fa-comment text-5xl mb-3 text-gray-400"></i>
                        <div>待设计</div>
                        <div class="text-gray-400 text-sm mt-1">使用 /设计 messages 创建</div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 发现页面 -->
        <div class="grid-item">
            <div class="grid-header">
                发现页面
            </div>
            <div class="grid-content">
                <div class="empty-card">
                    <div class="text-center">
                        <i class="fa-solid fa-compass text-5xl mb-3 text-gray-400"></i>
                        <div>待设计</div>
                        <div class="text-gray-400 text-sm mt-1">使用 /设计 discover 创建</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <footer class="bg-gray-900 text-white p-6 text-center">
        <div class="max-w-4xl mx-auto">
            <h3 class="text-lg font-semibold">拼餐APP设计预览</h3>
            <p class="mt-2 text-gray-400">所有文件已自动创建完成：</p>
            <ul class="mt-3 text-gray-400 text-sm space-y-1">
                <li>preview.html (预览页面)</li>
                <li>login.html (登录/注册页面)</li>
                <li>home.html (首页)</li>
                <li>profile.html (个人中心页面)</li>
                <li>待设计：restaurant-detail.html, create-group.html, group-detail.html, friends.html, messages.html, discover.html</li>
            </ul>
            <p class="mt-4 text-gray-400 text-sm">如需设计其他页面，请输入 /设计+页面名称</p>
        </div>
    </footer>
</body>
</html> 